# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class NodeGroupSpec(object):

    def __init__(self, name, nodeConfig, initialNodeCount, vpcId, description=None, azs=None, nodeCidr=None, autoRepair=None, caConfig=None):
        """
        :param name:  名称
        :param description: (Optional) 
        :param nodeConfig:  工作节点组的信息
        :param azs: (Optional) 工作节点组的 az，必须为集群az的子集，默认为集群az
        :param initialNodeCount:  工作节点组初始化大小，至少为1个
        :param vpcId:  工作节点组运行的vpc
        :param nodeCidr: (Optional) 工作节点组的cidr
        :param autoRepair: (Optional) 是否开启自动修复，默认不开启。
        :param caConfig: (Optional) 自动伸缩配置
        """

        self.name = name
        self.description = description
        self.nodeConfig = nodeConfig
        self.azs = azs
        self.initialNodeCount = initialNodeCount
        self.vpcId = vpcId
        self.nodeCidr = nodeCidr
        self.autoRepair = autoRepair
        self.caConfig = caConfig
